package com.jk.bean;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Document(collection="userLog")
public class Log {


    private String id;

    private String userAccout;

    @DateTimeFormat(pattern="yyyy-MM-dd")//接收前台的格式
    private Date addTime;

    private String  name;

    private String version;

    private String phone;

    public Log() {
    }

    public Log(String userAccout, Date addTime, String name, String version, String phone) {
        this.userAccout = userAccout;
        this.addTime = addTime;
        this.name = name;
        this.version = version;
        this.phone = phone;
    }
}
